Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Constants and Data Types


Security Level Indicators

When you set up a session security options data structure, you must use the CodeVerifierOptions type to specify which Java code should be run through the verifier before execution. The verifier checks to see that the Java code is valid and that it does not attempt any illegal actions that could affect the host platform.

enum CodeVerifierOptions {
   eDontCheckCode = 0, 
   eCheckRemoteCode, 
   eCheckAllCode 
   };
Constant descriptions

eDontCheckCode
Don't verify any code.
eCheckRemoteCode
Verify any code that is read from a network.
eCheckAllCode
Verify all code.
In addition, you must also use the NetworkSecurityOptions type to specify the security level allowed for applets accessing a network.

enum NetworkSecurityOptions {
   eNoNetworkAccess = 0, 
   eAppletHostAccess, 
   eUnrestrictedAccess
   };
Constant descriptions

eNoNetworkAccess
Applets have no access to networks.
eAppletHostAccess
An applet may access only its host server.
eUnrestrictedAccess
Applets have unrestricted access to all networks.
Finally you must use the FileSystemOptions type to specify the security level allowed for applets accessing the local file system.

enum FileSystemOptions {
   eNoFSAccess = 0,
   eLocalAppletAccess,
   eAllFSAccess
};
Constant descriptions

eNoFSAccess
Applets have no access to the local file system.
eLocalAppletAccess
Only applets that are stored locally may access the local file system.
eAllFSAccess
All applets have access to the local file system.
See "Session Security Options Structure" (page 45) for more information about using these three security indicator types.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
23 APR 1997